#include <stdio.h>

int main()
{
    printf("hello world\n");
    fputs("aaaa", stdout);
    fwrite("bbbb", 1, 4, stdout);
    fprintf(stdout, "cccc");

    //FILE *fp = fopen("log.txt","a");// append追加
    //if(fp == NULL)
    //{
    //    perror("fopen");
    //    return 1;
    //}

    //char buffer[1024];
    //const char *message = "hello file";
    //int i = 0;
    //while(i < 10)
    //{
    //    snprintf(buffer, sizeof(buffer), "%s: %d\n", message, i);
    //    fputs(buffer, fp);
    //    i++;
    //}

    //fclose(fp);
    return 0;
}

